package com.xg.service.impl;

import com.xg.entity.UsedCar;
import com.xg.entity.UsedCarBrand;
import com.xg.mapper.UsedCarBrandMapper;
import com.xg.service.IUsedCarBrandService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author jdh
 * @since 2023-03-30
 */
@Service
public class UsedCarBrandServiceImpl extends ServiceImpl<UsedCarBrandMapper, UsedCarBrand> implements IUsedCarBrandService {

    @Autowired
    private UsedCarBrandMapper usedCarBrandMapper;

    @Override
    public List<UsedCarBrand> queryUsedCarBrandList() {
        return usedCarBrandMapper.queryUsedCarBrandList();
    }

    @Override
    public List<UsedCarBrand> queryUsedCarBrandPageList(UsedCarBrand usedCarBrand) {
        return usedCarBrandMapper.queryUsedCarBrandPageList(usedCarBrand);
    }

    @Override
    public List<UsedCar> queryUsedCarBrandById(Integer brandId) {
        return usedCarBrandMapper.queryUsedCarBrandById(brandId);
    }
}
